package com.nuit.cxl.springboot_mybatis_quitestart.controller;



import com.nuit.cxl.springboot_mybatis_quitestart.dao.AccountDao;
import com.nuit.cxl.springboot_mybatis_quitestart.domain.TblAccount;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class BiliController {

    @Autowired
    AccountDao accountDao;

    @RequestMapping("/bili/{id}")
    public TblAccount bili(@PathVariable Integer id) {
//
        TblAccount tblAccount = accountDao.selectById(id);
        System.out.println(tblAccount);
        return tblAccount;
    }

}
